import request from '../utils/request'
export const getUserChannelAPI = (id,time) =>{
    return request.get('/v1_0/articles',{
        params:{
            channel_id:id,
            timestamp:time
        }
    })
}
export const dislikeArticleAPI = id => {
    return request.post('/v1_0/article/dislikes', {
        target: id
    })
}
export const reportArticleAPI = (target, type) => {
    return request.post('/v1_0/article/reports', {
        target, // 文章的 Id***
        type // 举报的类型
    })
}